package com.guigu.eduservice.service;

import com.github.pagehelper.PageInfo;
import com.guigu.eduservice.entity.DetectionReport;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.eduservice.vo.DetectionReportVo;
import com.guigu.eduservice.vo.EqVo;
import com.guigu.eduservice.vo.EvaluationInfoVo;

import java.util.List;

/**
 * <p>
 * 检测报告表（存储设备检测的结果及结论） 服务类
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
public interface DetectionReportService extends IService<DetectionReport> {

    boolean createDetectionReport(DetectionReportVo reportVo);

    /**
     * 分页查询检测报告
     * @param pageNum 页码
     * @param pageSize 每页条数
     * @return 分页结果
     */
    PageInfo<EvaluationInfoVo> getEvaluationInfoList(DetectionReportVo vo,Integer pageNum, Integer pageSize);

    /**
     * 修改检测报告审核状态
     * @param reportVo
     * @return
     */
    int updateDetectionReport(DetectionReportVo reportVo);

    //根据设备ID查询检测报告
    DetectionReport selectDetectionReportById(Long equipmentId);
}
